package com.caporegim.main;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.caporegim.test.Service;



public class Startup {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("com/caporegim/test/ExampleConfigurationTests-context.xml");
		BeanFactory beanFactory = context;
		Service service = (Service) beanFactory.getBean("ExampleService");
		System.out.println(service.getMessage());

	}

}
